import request from '@/utils/https'

export function getComment(id: string) {
  return request<any>({
    url: `/artArticleComment/${id}`,
    method: 'get'
  })
}

export function save(data: { articleId: string; comment: string; pics: string[]}) {
  return request<any>({
    url: '/saveOrUpdateArtComment',
    method: 'post',
    data
  })
}
